<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Components/ueditor/editor_config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Components/ueditor/editor_all.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Components/ueditor/themes/default/ueditor.css">
	<link href="__PUBLIC__/Css/manager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function(){
            var initialContentVal=$("#casedesDIV").html();
            var editor = new baidu.editor.ui.Editor({
//                        toolbars:[['Spechars','Emotion','InsertImage','Bold','Italic','ForeColor','FontFamily','FontSize', ]],//自定义ueditor工具栏
                initialContent: initialContentVal,
                minFrameHeight: 200,//初始化框架大小
                autoFloatEnabled: false,//工具栏自动浮动-》关闭
                textarea:'casedes'//form表单将通过该参数获得表单提交的数据
            });
            editor.render("content");
        });
    </script>
</head>
<body>
<h2>更新文章 <a href="__APP__/SuccessCase/index" id="backBTN" >[取消返回]</a></h2>

<form action="__APP__/SuccessCase/update" method="post">
    <input type="hidden" name="id" value="{$list['id']}">
    <table id="user_Add">
        <tr>
            <th class="tRight">案例类型</th>
            <td>
                <select name="casetypeid">
                    <option value="-1">
                        请选择案例类型
                    </option>
                    <volist name="typeList" id="type">
                        <if condition="($list['casetypeid'] eq $type['id'])">
                            <option value="{$type['id']}" selected>
                                {$type["typename"]}
                            </option>
                            <else />
                            <option value="{$type['id']}">
                                {$type["typename"]}
                            </option>
                        </if>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <th class="tRight">案例标题</th>
            <td><input type="text" name="casetitle" value="{$list['casetitle']}" size="80"></td>
        </tr>
        <tr>
            <th class="tRight">案例正文</th>
            <td>
                <script type="text/plain" id="content" style="width:800px;"></script>
                <div id="casedesDIV" style="display: none;">
                    {$list['casedes']}
                </div>
                <!--<textarea rows="10" cols="120" name="casedes">{$list['casedes']}</textarea>-->
            </td>
        </tr>
        <tr>
			<th class="tRight">&nbsp;</th>
            <td>
                <input type="submit" value="确认修改">
            </td>
        </tr>
    </table>
</form>
</body>
</html>